Developer --> Technical Publications
PATHHardware Documentation > USB Devices > Mac OS USB DDK API Reference


Device Descriptor Structure

The USB device descriptor is of this form:

struct USBDeviceDescriptor {
    UInt8 length;           /* Length of this descriptor */
    UInt8 descType;         /*
    UInt16 usbRel;
    UInt8 deviceClass;
    UInt8 deviceSubClass;
    UInt8 protocol;
    UInt8 maxPacketSize;
    UInt16 vendor;
    UInt16 product;
    UInt16 devRel;
    UInt8 manuIdx;
    UInt8 prodIdx;
    UInt8 serialIdx;
    UInt8 numConf;
    UInt16 descEnd;
};

Additional information about valid values for the fields in USBDeviceDescriptor structure can be found in the USB specifications.


© 1999 Apple Computer, Inc.

Previous | Back Up One Level | Next | Show Frames | Hide Frames